Resolve Bank NGN
This endpoint is used to verify the owner of Nigerian bank account or mobile money wallet using the bank code or mobile money code and the account number
Usage
API Endpoint - https://api.marasoftpay.live/resolvebank
Method - POST
Data Type - FORM-DATA
Limit - No Limit
Param | Required? | Description |
---|---|---|
enc_key | yes | Your encryption key from MarasoftPay. Get it from your dashboard |
bank_code | Yes | Bank code of the account to be resolved |
account_number | Yes | Account number to be resolved |
Code Sample
<?php
$enc_key = "your encryption key";
$account_number = $_POST['account_number'];
$bank_code = $_POST['bank_code'];
$url = "https://api.marasoftpay.live/resolvebank";
$curl = curl_init($url);
curl_setopt($curl,CURLOPT_URL,$url);
curl_setopt($curl,CURLOPT_POST,true);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
$headers = array (
"Content-Type: application/x-www-form-urlencoded",
);
curl_setopt($curl,CURLOPT_HTTPHEADER,$headers);
$data = "enc_key=$enc_key&account_number=$account_number&bank_code=$bank_code";
curl_setopt($curl,CURLOPT_POSTFIELDS,$data);
echo $resp = curl_exec($curl);
curl_close($curl);
?>
router.get("/generate-dynamic-account", (req,res) => {
const enc_key = "your encryption key";
const account_number = "account numbert";
const bank_code = "bank code";
const data = { enc_key, account_number, bank_code };
const url = "https://api.marasoftpay.live/resolvebank";
axios
.post(url,data)
.then((response) => {
console.log(response);
})
.catch((error)=>{
console.log(error);
})
})
Response Sample
{
"status":true,
"data" : {
"account_name": "ADEKUNLE DAVID ADEYEYE",
"account_number": "0230926956"
}
}